<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLawyerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('lawyer', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('律师名字');
            $table->string('avatar')->nullable()->comment('律师头像');
            $table->string('description')->nullable()->comment('律师简介');
            $table->string('phone')->nullable()->comment('联系方式');
            $table->string('law_firms')->nullable()->comment('所属律师事务所');
            $table->string('address')->nullable()->comment('律所地址');
            $table->string('case_num')->nullable()->comment('案例数量');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('lawyer');
    }
}
